package com.fmy.jurisdiction.modular.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author Mr.fmy
 * @since 2019-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_admin_dept")
public class AdminDept implements Serializable {

private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 父部门
     */
    @NotNull(message = "请指定父部门")
    private Integer fid;

    /**
     * 父部门集合 逗号分隔
     */
    private String fids;

    /**
     * 描述
     */
    private String description;

    /**
     * 排序
     */
    @NotNull(message = "请输入部门排序")
    private Integer sort;


    public static final String ID = "id";

    public static final String DEPT_NAME = "dept_name";

    public static final String FID = "fid";

    public static final String FIDS = "fids";

    public static final String DESCRIPTION = "description";

    public static final String SORT = "sort";

    public static final String ID_FIELD = "id";

    public static final String DEPTNAME_FIELD = "deptName";

    public static final String FID_FIELD = "fid";

    public static final String FIDS_FIELD = "fids";

    public static final String DESCRIPTION_FIELD = "description";

    public static final String SORT_FIELD = "sort";

}
